{% extends 'login_base.html' %}
{% load static %}

{% block title %}登录页面{% endblock %}

{% block header_js %}
    <!-- 引入封装了failback的接口--initGeetest -->
    <script src="http://static.geetest.com/static/tools/gt.js"></script>
{% endblock %}

{% block form_model %}
    <form method="post" action="/users/login/?next={{ next }}">
        {% csrf_token %}
        <div class="form-group">
            <label for="username" class="control-label">用户名</label>
            <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名/手机号码/邮箱">
        </div>
        <div class="form-group">
            <label for="password" class="control-label">密码</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
        </div>
        {#        <div class="form-group">#}
        {#            <div id="embed-captcha"></div>#}
        {#            <p id="wait" class="show">正在加载验证码......</p>#}
        {#            <p id="notice" class="hide">请先拖动验证码到相应位置</p>#}
        {#        </div>#}
        <div class="form-group">
            <button type="submit" class="btn btn-primary btn-block" id="login-button">登录</button>
        </div>
{#        <p class="text-right">#}
{#            <a href="./register.html" class="text-danger" style="margin-right: 10px;">忘记密码</a>#}
{#            <a href="{% url 'users:register' %}">注册用户</a>#}
{#        </p>#}
    </form>
{% endblock %}
